package demo1222.pm;

public class Demo_03 {
    public static void main(String[] args) {
      print("2345678");
    }
    public static void print(String s){
        try{
            System.out.println(s.length());//会不会出现异常? 不会哦
            System.out.println("try--语句结束");
        }catch (NullPointerException e){
            System.out.println("空指针异常...");

        }
        System.out.println("程序结束...");
    }
}
